package yz.dut.edu.graduate.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import yz.dut.edu.graduate.pojo.Ingredient;

@Repository
public interface IngredientMapper {
    int deleteByPrimaryKey(Integer iId);

    int insert(Ingredient record);

    int insertSelective(Ingredient record);

    Ingredient selectByPrimaryKey(Integer iId);

    int updateByPrimaryKeySelective(Ingredient record);

    int selectIdByName(String ingredientName);

    int updateByPrimaryKey(Ingredient record);
}